<?php
/*@var $form  yii\widgets\ActiveForm */
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use backend\assets\RbacAsset;
RbacAsset::register($this);
?>
<?php $this->beginBlock('pagename'); ?>
	RBAC管理
<?php $this->endBlock(); ?>
<div class="row">
<div class="col-sm-12">
	<h3 class="header blue lighter smaller">
		<i class="ace-icon fa fa-folder-o smaller-90"></i>
		RBAC管理模块
	</h3>

	<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
		<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
			<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="tabs-1" aria-labelledby="ui-id-29" aria-selected="true" aria-expanded="true">
				<a href="#tabs-1" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-29">添加角色</a>
			</li>

			<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-2" aria-labelledby="ui-id-30" aria-selected="false" aria-expanded="false">
				<a href="#tabs-2" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-30">角色列表</a>
			</li>

			
		</ul>

		<div id="tabs-1" aria-labelledby="ui-id-29" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-hidden="false" style="">
			<?php
				$form=ActiveForm::begin([
					'fieldConfig'=>[
							'template'=>'{label}<div class="col-sm-9">{input}<span class="help-inline col-xs-12 col-sm-7">{hint}{error}</span></div>',
							'labelOptions'=>['class'=>'col-sm-3 control-label no-padding-right'],
							'inputOptions'=>['class'=>'col-xs-10 col-sm-5'],
							'errorOptions'=>['class'=>'middle'],
					],
					'options'=>['class'=>'form-horizontal'],
				]);
			?>
			<?=$form->field($model, 'RoleName')->textInput() ?>
			<?=$form->field($model, 'description')->textInput()?>
			<?=$form->field($model, 'SortID')->textInput() ?>
			<?=$form->field($model, 'State')->radioList([
				'1'=>'启用',
				'2'=>'禁用'
			],[$model->State='1']) ?>
			<div class="clearfix form-actions">
				<div class="col-md-offset-3 col-md-9">
					<button class="btn btn-info" type="submit">
						<i class="ace-icon fa fa-check bigger-110"></i>
						提交
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn" type="reset">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						重置
					</button>
				</div>
			</div>
			<?php ActiveForm::end();?>
		</div>

		<div id="tabs-2" aria-labelledby="ui-id-30" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-hidden="true" style="display: none;">
			<?=$this->render('_rolelist'); ?>
		</div>

		
	</div>
</div>
</div>